package vn.hocweb.entity;

import java.util.ArrayList;
import java.util.List;

public class Trang extends Entity{
	private long maTrang;
	
	private DanhMuc danhMuc;
	
	private String ten;
	private String moTa;
	
	private List<BaiViet> danhSach_BaiViet;
	
	public Trang(int thuTu, boolean noiBat, boolean hienThi, long maTrang,
			long maDanhMuc, String ten, String moTa) {
		super(thuTu, noiBat, hienThi);
		this.maTrang = maTrang;
		this.danhMuc = new DanhMuc(maDanhMuc);
		this.ten = ten;
		this.moTa = moTa;
		this.danhSach_BaiViet = new ArrayList<BaiViet>();
	}

	public Trang(long maTrang) {
		super();
		this.maTrang = maTrang;
	}

	public DanhMuc getDanhMuc() {
		return danhMuc;
	}

	public void setDanhMuc(DanhMuc danhMuc) {
		this.danhMuc = danhMuc;
	}

	public long getMaTrang() {
		return maTrang;
	}

	public void setMaTrang(long maTrang) {
		this.maTrang = maTrang;
	}

	public String getTen() {
		return ten;
	}

	public void setTen(String ten) {
		this.ten = ten;
	}

	public String getMoTa() {
		return moTa;
	}

	public void setMoTa(String moTa) {
		this.moTa = moTa;
	}

	public List<BaiViet> getDanhSach_BaiViet() {
		return danhSach_BaiViet;
	}

	public void setDanhSach_BaiViet(List<BaiViet> danhSach_BaiViet) {
		this.danhSach_BaiViet = danhSach_BaiViet;
	}
	
}
